package com.ruoyi.goods.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 收获地址对象 shipping_addresses
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShippingAddresses extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 地址唯一标识符，自增 */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /** 关联的用户 ID */
    @Excel(name = "关联的用户 ID")
    @TableField(value = "user_id")
    private Long userId;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String address;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String recipientName;

    private  String detailAddress;

    /** 逻辑删除标识，默认不删除 */
    @Excel(name = "逻辑删除标识，默认不删除")
    private Integer isDeleted;

    private Integer isDefault;
    @TableField(value = "sysUser")
    private SysUser sysUser;

}
